import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-form',
  templateUrl: './form.component.html',
  styleUrls: ['./form.component.scss']
})
export class FormComponent implements OnInit {


  public form_list: any = {
    username: "",
    sex: '1',
    citys: ['北京', '上海', '深证'],
    city: '',
    aihao: [
      {
        name: "健身",
        flag: true
      }, {
        name: "打球",
        flag: false
      }, {
        name: "听歌",
        flag: false
      }],
      mark:''
  }

  constructor() { }

  ngOnInit() {
  }
  submit(){
    console.log(this.form_list)
  }

}
